import { getAction, postAction } from '@/api/manage'

// 操作日志列表
const list = (params) => getAction('/admin/operationLog/page', params)
// 操作日志详情
const detail = (params) => getAction(`/admin/operationLog/detail/${params}`)
// 删除操作日志
const del = (params) => postAction(`/admin/operationLog/delete/${params}`)
// 批量删除操作日志
const batchDel = (params) => postAction(`/admin/operationLog/batchDel`, params)
// 清空操作日志
const clear = () => postAction(`/admin/operationLog/clear`)
// 导出操作日志
const exports = (params) => postAction('/admin/operationLog/export', params, 'blob')

export {
  list,
  detail,
  del,
  batchDel,
  clear,
  exports
}
